aboutsummaryrefslogtreecommitdiff
path: root/src/app/api/auth/[...nextauth]
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2025-07-02 22:18:13 +0200
committerschererleander <leander@schererleander.de>2025-07-02 22:18:13 +0200
commitc12ca8a52d27b1931d826df10119984f2a7c58dd (patch)
treeeca7e5e8f5f7fb7351047b49036def52b66172b2 /src/app/api/auth/[...nextauth]
parent899d50098c20c5652040e989932628d63af28301 (diff)
feat: add authentication API
Diffstat (limited to 'src/app/api/auth/[...nextauth]')
-rw-r--r--src/app/api/auth/[...nextauth]/route.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app/api/auth/[...nextauth]/route.ts b/src/app/api/auth/[...nextauth]/route.ts
new file mode 100644
index 0000000..264f925
--- /dev/null
+++ b/src/app/api/auth/[...nextauth]/route.ts
@@ -0,0 +1,6 @@
+import NextAuth from "next-auth"
+import { authOptions } from "@/lib/auth"
+
+const handler = NextAuth(authOptions)
+
+export { handler as GET, handler as POST } \ No newline at end of file